<layout name="Layout/layout" />

<div id="wrapper">
    <div class="col-md-2">
        <include file="Layout:left-menubar" />
    </div>
    <div class="col-md-10">
        <!-- Page Content -->
        <div id="page-content-wrapper">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-lg-12">
                        <h1>支付成功</h1>
                        <div class="alert alert-success" role="alert">恭喜你已经成功报名且缴费，请注意考试时间，千万不要迟到哦！</div>
                        <div class="alert alert-info" role="alert">
                            系统将在<span id="seconds">5</span>s后自动跳转回首页，<a href="{:U('Home/Index/index')}" class="alert-link">点此立即跳转</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- /#page-content-wrapper -->
<script>
    window.onload = function(){
        function checkSecond(){
            var seconds = $('#seconds');
            if(seconds <= 0){
                window.href = "{:U('Home/Index/index')}";
            }
            seconds.text = seconds.text - 1;
        }
        setInterval("checkSecond()", 1000);
    }
</script>
</div>
<!-- /#wrapper -->
